﻿using GSOrganization.Application;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Furion.Web.Entry.Controllers;

[Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)] 
public class HomeController : BaseController
{

    private readonly ISysMenuService _menu;
    public HomeController(ISysMenuService nenu)
    {
        _menu = nenu;
    }
    [HttpPost]
    public IActionResult SystemMenu()
    {

        var data = _menu.SystemMenu();

        return Json(data);
    }
    public IActionResult Welcome()
    {
       
        return View();
    }
    public IActionResult Index()
    {
       
        return View();
    }
   
 
}
